package svgedit.gui.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

import svgedit.gui.Frame;

/** Shows confirm changes dialog, then exits the application.
 */
@SuppressWarnings("serial")
public class LanguageListener extends AbstractAction {

    private Frame frame;
	String language="English";

    /** Create this action for the given frame */
    public LanguageListener(Frame frame) {
        this.frame = frame;
    }
	
	@Override
	public void actionPerformed(ActionEvent e) {
		language = e.getActionCommand();
		frame.setLanguage();
	}

	public String getLanguage ()
	{
		return language;
	}
	
	public void resetLanguage()
	{
		language = "English";
	}
	
}
